package com.laicunba.jms.impl;

import javax.jms.Message;

import org.springframework.stereotype.Component;

import com.laicunba.jms.JmsQueueListener;
import com.laicunba.jms.JmsQueueListenerTemplate;

@Component
public class JmsTest2QueueListenerImpl extends JmsQueueListenerTemplate implements JmsQueueListener {

	@Override
	public String queue() {
		return "lcb.core.test.step2";
	}

	@Override
	public boolean receive(Message msg) {

		System.out.println("收到消息：" + msg);
		return true;
	}

}
